﻿<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <meta http-equiv="X-UA-Compatible" content="IE=EDGE;IE=11;IE=8,chrome=1" />
  <title>自动开卡</title>
  <link href="/InSiteWebApplication/Content/Easyui/themes/metro/easyui.css" rel="stylesheet" />
  <link href="/InSiteWebApplication/Content/Easyui/custom-easyui.css" rel="stylesheet" />
  <link href="/InSiteWebApplication/Content/Easyui/themes/icon.css" rel="stylesheet" />
  <style type="text/css">
    #progressBar {
      display: none;
    }

    .mask {
      position: absolute;
      top: 140px;
      height: 340px;
      width: 100%;
      z-index: 999;
      display: none;
    }

    .ruleDetail {
      width: 150px;
      height: 26px;
      border: none;
      outline: none;
      background: transparent;
    }

    .btnNews {
      height: 22px;
      width: 70px;
      text-align: center;
      text-decoration: none;
      display: inline-block;
      font-size: 9px;
      margin: 4px 2px;
      cursor: pointer;
      color: Black;
      border-radius: 4px;
      box-shadow: 0px 1px 0px #3d6b93;
      line-height: 22px;
      text-align: center;
      text-decoration: none;
      transition: background-color 0.15s ease-in-out;
    }

    .combobox-item {
      height: 32px;
    }

    /* 重写日期框样式 */
    .datebox {
      height: 24px !important;
      line-height: 24px !important;
    }

    /* 重写文本框样式 */
    #queryForm .textbox-text {
      line-height: 24px !important;
      height: 24px !important;
    }
  </style>
</head>

<body>
  <div class="panelSection">
    <div class="easyui-panel " title="查询区域" style="padding: 3px;"
      data-options="closable:false,collapsible:true,minimizable:false,maximizable:false">
      <form id="queryForm" action="">
        <div style="margin: 3px 0px 3px 3px">
          <div id="divScanOrder" style="float: left;">
            <div class="divLabel" style="margin-bottom: 5px; color: red; font-weight: bold">
              扫描订单号：</div>
            <input id="txtScanOrder" name="scanOrderName" class="easyui-textbox" type="text" style="width: 120px;" />
          </div>
          <div id="divProductName" style="float: left; margin-left: 10px">
            <div class="divLabel" style="margin-bottom: 5px">件号：</div>
            <input id="txtProductName" name="productName" class="easyui-textbox" style="width: 120px;" />
          </div>
          <div id="divContainerName" style="float: left; margin-left: 10px">
            <div class="divLabel" style="margin-bottom: 5px">批次号：</div>
            <input id="txtContainerName" name="containerName" class="easyui-textbox" style="width: 120px;" />
          </div>
          <div id="divStartDate" style="float: left; margin-left: 10px">
            <div class="divLabel" style="margin-bottom: 5px">开卡日期：</div>
            <input class="easyui-datebox" name="startDate" id="txtStartDate" style="width: 120px;" /> -
            <input class="easyui-datebox" name="endDate" id="txtEndDate" style="width: 120px;" />
          </div>

          <div style="float: left; margin-left: 10px">
            <div class="divLabel" style="margin-bottom: 5px">分厂：</div>
            <select id='ddlFactory' name="ddlFactory" data-options='editable:true' class='easyui-combobox select'
              style="width:160px;"></select>
          </div>

          <div style="float: left; margin-left: 10px">
            <div class="divLabel" style="margin-bottom: 5px">中心：</div>
            <select id='ddlWorkcenter' name="ddlWorkcenter" data-options='editable:true' class='easyui-combobox select'
              style="width:160px;"></select>
          </div>

          <div style="float: left; margin-left: 10px">
            <div class="divLabel" style="margin-bottom: 5px">件号主制单元：</div>
            <select id='ddlTeam' name="ddlTeam" data-options='editable:true' class='easyui-combobox select'
              style="width:160px;"></select>
          </div>

          <div style="float: left; margin-left: 20px">
            <a id="btnSearch" class="easyui-linkbutton" style="margin-top: 16px; width: 80px;">查询</a>
            <a id="btnReset" class="easyui-linkbutton" style="margin-top: 16px; margin-left: 5px;">重置</a>
          </div>
          <div style="clear: both">
          </div>
        </div>
      </form>
    </div>
  </div>
  <div id="tt" class="easyui-tabs">
    <div title="未开卡" style="padding: 10px; display: none;">
      <div class="panelSection">
        <div class="easyui-panel " title="未开卡结果区域" style="padding: 3px;"
          data-options="closable:false,collapsible:true,minimizable:false,maximizable:false">
          <div style="margin: 3px 0px 3px 3px">
            <table id="gdContainerInfoNot" class="easyui-datagrid" style="width: 100%; height: 500px"
              data-options="rownumbers:true">
            </table>
            <div id="ppNot" style="float: right" class="easyui-pagination" data-options="   
                 layout:['first','prev','next','last','manual','info'],              
                    total: 0,
                    showPageList: false,
                    showPageInfo: false,
                    showRefresh: false,
                    afterPageText:'共&nbsp{pages}&nbsp页',
                    buttons:[{
                            iconCls:'',
                            text:'Go',
                            id:'pageGo'
                    }]  
                ">
            </div>
          </div>
        </div>
      </div>
      <div class="panelSection">
        <div class="easyui-panel " title="按钮区域" style="padding: 3px;"
          data-options="closable:false,collapsible:true,minimizable:false,maximizable:false">
          <div style="margin: 3px 0px 3px 3px">
            <a id="btnOneKeyStart" class="easyui-linkbutton" style="width: 80px; height: 26px;">
              一键开卡</a>
            <div id="progressBar" class="easyui-progressbar">
            </div>
          </div>
        </div>
      </div>
      <div id="dgRule" style="padding: 20px 0 0 0; display: none; width: 500px; height: 450px"
        data-options="title:'自动开卡规则'">
        <div style="margin-top: 10px; float: left">
          <div class="divLabel" style="width: 80px; margin-top: 10px; text-align: right; display: inline-block">
            件号：</div>
          <input id="txtAsProductName" class="ruleDetail" style="width: 250px;" readonly="readonly" />
        </div>
        <div style="margin-top: 10px; float: left">
          <div class="divLabel" style="width: 80px; margin-top: 10px; text-align: right; display: inline-block">
            零件名称：</div>
          <input id="asProductDesc" name="productDesc" class="ruleDetail" readonly="readonly" />
          <div class="divLabel" style="width: 60px; margin-top: 10px; text-align: right; display: inline-block">
            版本：</div>
          <input id="asProductRev" class="ruleDetail" readonly="readonly" />
        </div>
        <div style="margin-top: 10px; float: left">
          <div class="divLabel" style="width: 80px; margin-top: 10px; text-align: right; display: inline-block">
            工艺路线：</div>
          <input id="asWorkflowName" class="ruleDetail" readonly="readonly" />
          <div class="divLabel" style="width: 60px; margin-top: 10px; text-align: right; display: inline-block">
            版本：</div>
          <input id="asWorkflowRev" class="ruleDetail" readonly="readonly" />
        </div>
        <div style="margin-top: 10px; float: left">
          <div class="divLabel" style="width: 80px; margin-top: 10px; text-align: right; display: inline-block">
            主制工区：</div>
          <input id="asWorkCenter" class="ruleDetail" readonly="readonly" />
          <div class="divLabel" style="width: 60px; margin-top: 10px; text-align: right; display: inline-block">
            工艺员：</div>
          <input id="asTechnologyName" class="ruleDetail" readonly="readonly" />
        </div>
        <div style="margin-top: 10px; float: left">
          <div class="divLabel" style="width: 80px; margin-top: 10px; text-align: right; display: inline-block">
            批次类型：</div>
          <input id="asContainerType" class="ruleDetail" readonly="readonly" />
          <div class="divLabel" style="width: 60px; margin-top: 10px; text-align: right; display: inline-block">
            是否领料：</div>
          <input id="asIsSelfMfg" class="ruleDetail" readonly="readonly" />
        </div>
        <div style="margin-top: 10px; float: left">
          <div class="divLabel" style="width: 80px; margin-top: 10px; text-align: right; display: inline-block">
            是否切断件：</div>
          <input id="asIsCutContainer" class="ruleDetail" readonly="readonly" />
        </div>
        <div style="margin-top: 10px; float: left" id="cutSection">
          <div class="divLabel" style="width: 80px; margin-top: 10px; text-align: right; display: inline-block">
            分卡数：</div>
          <input id="asCutQty" class="ruleDetail" readonly="readonly" />
          <div class="divLabel" style="width: 60px; margin-top: 10px; text-align: right; display: inline-block">
            分卡工序：</div>
          <input id="asCutStartStep" class="ruleDetail" readonly="readonly" />
        </div>
      </div>
    </div>
    <div title="已开卡(一键开卡)" style="overflow: auto; padding: 10px; display: none;">
      <div class="panelSection">
        <div class="easyui-panel " title="已开卡结果区域" style="padding: 3px;"
          data-options="closable:false,collapsible:true,minimizable:false,maximizable:false">
          <div style="margin: 3px 0px 3px 3px">
            <table id="gdContainerInfoOff" class="easyui-datagrid" style="width: 100%; height: 350px"
              data-options="rownumbers:true">
            </table>
            <div id="ppEnd" style="float: right" class="easyui-pagination" data-options="   
                 layout:['first','prev','next','last','manual','info'],              
                    total: 0,
                    showPageList: false,
                    showPageInfo: false,
                    showRefresh: false,
                    afterPageText:'共&nbsp{pages}&nbsp页',
                    buttons:[{
                            iconCls:'',
                            text:'Go',
                            id:'pageGoEnd'
                    }]  
                ">
            </div>
          </div>
        </div>
      </div>
    </div>
    <div title="已开卡(定时任务)" style="overflow: auto; padding: 10px; display: none;">
      <div class="panelSection">
        <div class="easyui-panel " title="已开卡结果区域" style="padding: 3px;"
          data-options="closable:false,collapsible:true,minimizable:false,maximizable:false">
          <div style="margin: 3px 0px 3px 3px">
            <table id="gdTaskContainerInfo" class="easyui-datagrid" style="width: 100%; height: 350px"
              data-options="rownumbers:true">
            </table>
            <div id="ppTask" style="float: right" class="easyui-pagination" data-options="   
                         layout:['first','prev','next','last','manual','info'],              
                            total: 0,
                            showPageList: false,
                            showPageInfo: false,
                            showRefresh: false,
                            afterPageText:'共&nbsp{pages}&nbsp页',
                            buttons:[{
                                    iconCls:'',
                                    text:'Go',
                                    id:'pageGoTask'
                            }]  
                        ">
            </div>
          </div>
        </div>
      </div>
      <div class="panelSection">
        <div class="easyui-panel " title="按钮区域" style="padding: 3px;"
          data-options="closable:false,collapsible:true,minimizable:false,maximizable:false">
          <div style="margin: 3px 0px 3px 3px">
            <a id="btnExportTaskContainer" class="easyui-linkbutton" style="width: 80px; height: 26px;">
              导出结果</a>
          </div>
        </div>
      </div>
    </div>
    <div title="异常记录" style="overflow: auto; padding: 10px; display: none;">
      <div class="panelSection">
        <div class="easyui-panel " title="异常记录区域" style="padding: 3px;"
          data-options="closable:false,collapsible:true,minimizable:false,maximizable:false">
          <div class="dvgrid-cellwarp" style="margin: 3px 0px 3px 3px">
            <table id="gdContainerInfoError" class="easyui-datagrid" style="width: 100%; height: 500px"
              data-options="rownumbers:true,fitColumns:true">
            </table>
            <div id="ppError" style="float: right" class="easyui-pagination" data-options="   
                             layout:['first','prev','next','last','manual','info'],              
                                total: 0,
                                showPageList: false,
                                showPageInfo: false,
                                showRefresh: false,
                                afterPageText:'共&nbsp{pages}&nbsp页',
                                buttons:[{
                                        iconCls:'',
                                        text:'Go',
                                        id:'pageGoError'
                                }]  
                            ">
            </div>
          </div>
        </div>
      </div>
      <div class="panelSection">
        <div class="easyui-panel " title="按钮区域" style="padding: 3px;"
          data-options="closable:false,collapsible:true,minimizable:false,maximizable:false">
          <div style="margin: 3px 0px 3px 3px">
            <a id="btnExportError" class="easyui-linkbutton" style="width: 80px; height: 26px;">
              导出结果</a>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div id="mask" class="mask">
  </div>
</body>

</html>
<script src="/InSiteWebApplication/Scripts/CustomPageJs/ReferenceJsLib.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/jquery.min.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/jquery.easyui.min.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Scripts/CustomPageJs/CustomCommon.js" type="text/javascript"></script>
<script type="text/javascript">
  document.write('<script src="/InSiteWebApplication/Scripts/CustomPageJs/AutoStartContainer/AutoStartContainerPage.js?v=' + new Date().getTime() + '" type="text/javascript"><\/script>');
</script>